<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大厨师信息管理系统</title>
<style>
html { height:100%; border:0 none;}
body { background-color: #FFFFFF; color: #444444; margin:0; padding:0; height: 100%;border: 0 none;}
body { background:#f9f9f9; }
.z-viewport {
	margin: 0px; padding: 0px; border: 0px currentColor; height: auto;
}
.z-viewport body {
	margin: 0px; padding: 0px; border: 0px currentColor; height: auto;
}
.loginPageBody{background: #FFFFFF;}
.LoginWrapbg{ background:url(images/loginimgbg.jpg) no-repeat center; height:100%;}
.fieldWrap {
	text-align: left;
	width: 300px;
	height: 30px;
	padding-top: 10px;
	overflow: hidden;
}

.lable {
	padding-top: 3px;
	width: 90px;
	float: left;
	color: #333333;
	font-size: 14px;
	text-align: right;
	line-height:30px;
}

.inputWrap {
	background: url(images/loginInputWrapbg.gif) no-repeat left top;
	height: 28px;
	line-height: 16px;
	border: none;
	width: 200px;
	float: left;
}
.inputWrap2 {
	background: url(images/loginInputWrapbg.gif) no-repeat left top;
	height: 28px;
	line-height: 16px;
	border: none;
	width: 60px;
	float: left;
}
.inputvcode{
	height: 28px;
	line-height: 16px;
	border: none;
	width: 200px;
	float: left;    
}
.selectWrap {
	background: url(images/loginSelectWrapbg.gif) no-repeat left top;
}

.welcome {
	color: #FFF;
	font-family: "微软雅黑", Tahoma, sans-serif;
	font-size: 14px;
	font-weight: bold;
	padding: 6px 0;
	padding-top: 0px;
	padding-left: 20px;
	letter-spacing: 1px;
	text-align:center;
}


img {
	vertical-align: middle;
}
a{text-decoration:none;}
input.inputText {
	background: transparent none;
	border: none;
	margin-top: 3px;
	_margin-top: 1px;
}

.inputWrap .inputText {
	width: 192px;
	height: 20px;
	font-size: 14px;
	padding-left: 6px;
	margin-top: 0px;
	padding-top: 4px;
}

.inputWrap2 .inputText {
	width: 60px;
	height: 20px;
	font-size: 14px;
	padding-left: 6px;
	margin-top: 0px;
	padding-top: 4px;
}

input.inputTextHover {
	background: transparent none;
	border: none;
}

input.inputTextFocus {
	background: transparent none;
	border: none;
}

input[type="text"]:hover,input[type="password"]:hover {
	background: transparent none;
	border: none;
}

input[type="text"]:focus,input[type="password"]:focus {
	background: transparent none;
	border: none;
}

#loginBtnWrap {
	padding: 12px 0px 10px 130px;
	width: 100px;
}

#loginBtn {
	background: url(images/loginbtn.gif) no-repeat 0 0;
	width: 100px;
	height: 34px;
	color: #ffffff;
	font-size: 14px;
	line-height: 32px;
	text-align: center;
	word-spacing: 1px;
	letter-spacing: 6px;
}

.Logo {
	width: 426px;
	height: 122px;
	margin: 0 auto;
}
.inline-block { display:inline-block; *zoom: 1; *display: inline;vertical-align:middle; overflow:hidden; }

</style>

<script>
if(self!=top) top.location=self.location;
window.onload = function(){
	var oInput = document.getElementById("username");
	oInput.focus();
}
function login(){
    var loginForm = document.getElementById("form"); 
    if(document.getElementById('username').value==""){
		alert("请输入用户名！");
		return false;
    }
    if(document.getElementById('Password').value==""){
		alert("请输入密码！");
		return false;
    }   
    if(document.getElementById('yzm').value==""){
		alert("请输入验证码！");
		return false;
    }     
    loginForm.submit() ;
    return true;
}
function OnEnterClick(event){
   if (event.keyCode == 13) { 
    login();
   }
}
</script>

</head>
<body class="loginPageBody">
<div class="LoginWrapbg">
<div style="width: 100%; height: 50%; left: 0; top: 0; z-index: -1;"></div>
<div style="width: 500px; height: 440px; margin: 0 auto; margin-top: -370px;">
<div class="Logo"></div>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="80"><div class="welcome">欢迎登录大厨师信息管理系统</div></td>
  </tr>
</table>

<table width="439" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="height:100%">
<form  method="post" action="" name="form" id="form">
<div style="padding-left:40px">

<div class="fieldWrap">
<div class="lable">登录用户：</div>
<div class="inputWrap"><input  type="text"
	class="inputText" id="username" name="username" onFocus="this.select();" /></div>
</div>

<div class="fieldWrap">
<div class="lable">登录密码：</div>
<div class="inputWrap"><input 
	class="inputText" type="password" id="Password" name="Password" onfocus="this.select();" /></div>
</div>

<div class="fieldWrap">
<div class="lable">验证码：</div>
<div class="inputvcode"><div class="inputWrap2"><input class="inputText" type="text" id="yzm" name="yzm" style="width: 60px;" maxlength="4"  onkeydown="javascript:OnEnterClick(event);"  /></div><?=yzm('../')?></div>
</div>
<input type="hidden" name="mod" value="login" /><input type="hidden" name="act" value="checklogin" /><input type="hidden" name="sub" value="1" />  
<div class="fieldWrap" id="loginBtnWrap"><a href="javascript:;" class="inline-block" id="loginBtn" onclick="login()">登录</a>
</div>

<div class="fieldWrap">
<div class="lable"></div>
<div id="errorMsg" style="color: red;"></div>
</div>




</div>
<input type="hidden" id="hardwareCode" name="hardwareCode" value="">
<input type="hidden" id="encData" name="encData" value="">
<input type="hidden" id="sessionRnd" name="sessionRnd" value="${sessionRnd }">
</form>
</td>
  </tr>
</table>

</div>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:80px">
  <tr>
    <td align="center" style="font-size:12px;padding-top:10px;line-height:22px;">
	Copyright &copy; 2013-<?=date("Y")?> 大厨师信息管理系统。  技术支持: <a href="http://www.enginetone.com/" target="_blank" style="color:#000">北京银政通达软件有限公司</a><br />
	地址： 邮编： 电话： 备案号： 京ICP备 
</td>
  </tr>
</table>
</div>

</body>
</html>